Extension::Regexmatch Method
Syntax
.match as l (source_text as C, regex_pattern as C [, options as C])
Arguments
- source_text
Source text to match.
- regex_pattern
Regular expression to search
- options
Options to use matching regular expression.
Description
MatchSplit a regex expression.
Example
dim re as extension::Regex
? re.match("apples","([a-z]+)")
= .T.
? re.match("apples!","([a-z]+)")
= .F.
? re.match("apples","([a-z]+)!")
= .F.
? re.match("apples!","([a-z]+)!")
= .T.See Also